/**
 * 
 */
package com.alstudio.utils.formater.sex;

import com.alstudio.app.ALLocalEnv;
import com.alstudio.utils.android.color.ALColorUtils;
import com.loovee.imaohu.R;

/**
 * @author alonso lee
 * 
 */
public class ALSexFormatter {

	// 性别
	public static int transSexDrawable(String sex) {
		int int_sex = R.drawable.find_user_icon_woman;
		if ("male".equals(sex)) {
			int_sex = R.drawable.find_user_icon_man;
		}
		return int_sex;
	}

	// 性别
	public static int transSexBigDrawable(String sex) {
		int int_sex = R.drawable.find_user_icon_woman_big;
		if ("male".equals(sex)) {
			int_sex = R.drawable.find_user_icon_man_big;
		}
		return int_sex;
	}

	public static int getSexTxtColor(String sex) {
		
		int int_sex = ALColorUtils.getColor(ALLocalEnv.getLocalEnv(), R.color.sex_female_color);
		if ("male".equals(sex)) {
//			int_sex = R.color.sex_female_color;
			int_sex = ALColorUtils.getColor(ALLocalEnv.getLocalEnv(), R.color.sex_male_color);
		}
		return int_sex;
	}
	
	public static int getSexStringRes(String sex){
		if("male".equals(sex)){
			return R.string.TxtMale;
		}
		return R.string.TxtFemale;
	}

}
